package com.ruoyi.jiugongge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiugongge.mapper.JiugonggeRegistrationMapper;
import com.ruoyi.jiugongge.domain.JiugonggeRegistration;
import com.ruoyi.jiugongge.service.IJiugonggeRegistrationService;
import com.ruoyi.common.support.Convert;

/**
 * 九宫格参与人员 服务层实现
 * 
 * @author lzy
 * @date 2019-01-24
 */
@Service
public class JiugonggeRegistrationServiceImpl implements IJiugonggeRegistrationService 
{
	@Autowired
	private JiugonggeRegistrationMapper jiugonggeRegistrationMapper;

	/**
     * 查询九宫格参与人员信息
     * 
     * @param id 九宫格参与人员ID
     * @return 九宫格参与人员信息
     */
    @Override
	public JiugonggeRegistration selectJiugonggeRegistrationById(String id)
	{
	    return jiugonggeRegistrationMapper.selectJiugonggeRegistrationById(id);
	}
	
	/**
     * 查询九宫格参与人员列表
     * 
     * @param jiugonggeRegistration 九宫格参与人员信息
     * @return 九宫格参与人员集合
     */
	@Override
	public List<JiugonggeRegistration> selectJiugonggeRegistrationList(JiugonggeRegistration jiugonggeRegistration)
	{
	    return jiugonggeRegistrationMapper.selectJiugonggeRegistrationList(jiugonggeRegistration);
	}
	
    /**
     * 新增九宫格参与人员
     * 
     * @param jiugonggeRegistration 九宫格参与人员信息
     * @return 结果
     */
	@Override
	public int insertJiugonggeRegistration(JiugonggeRegistration jiugonggeRegistration)
	{
	    return jiugonggeRegistrationMapper.insertJiugonggeRegistration(jiugonggeRegistration);
	}
	
	/**
     * 修改九宫格参与人员
     * 
     * @param jiugonggeRegistration 九宫格参与人员信息
     * @return 结果
     */
	@Override
	public int updateJiugonggeRegistration(JiugonggeRegistration jiugonggeRegistration)
	{
	    return jiugonggeRegistrationMapper.updateJiugonggeRegistration(jiugonggeRegistration);
	}

	/**
     * 删除九宫格参与人员对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJiugonggeRegistrationByIds(String ids)
	{
		return jiugonggeRegistrationMapper.deleteJiugonggeRegistrationByIds(Convert.toStrArray(ids));
	}
	
}
